import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 使用函数求最大值
 * User: 15085202591
 * Date: 2022-10-31
 * Time: 22:36
 */
public class FindMax {
    public static int Max2(int x,int y){
        return x > y ? x : y;
    }
    public static int Max3(int x, int y, int z){
        if(Max2(x,y) > z){
            return Max2(x, y);
        }else {
            return z;
        }
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        System.out.println(Max2(a,b));
        System.out.println(Max3(a,b,c));
        sc.close();
    }
}
